Skip to content

Allow a max number of retries after a block fails#2157

Merged
ammgws merged 3 commits intogreshake:masterfrom
bim9262:max_retries
Dec 15, 2025
Merged

Allow a max number of retries after a block fails#2157
ammgws merged 3 commits intogreshake:masterfrom
bim9262:max_retries

Conversation

@bim9262
Copy link
Copy Markdown
Collaborator

@bim9262 bim9262 commented Apr 22, 2025

if max_retries is not set then no limit is used (same as previous behavior).

Fixes #2152

if `max_retries` is not set then no limit is used (same as previous
behavior).

Fixes greshake#2152
@bim9262
Copy link
Copy Markdown
Collaborator Author

bim9262 commented Apr 30, 2025

Rebased to resolve merge conflict.

@bim9262 bim9262 requested a review from MaxVerevkin April 30, 2025 03:01
@bim9262 bim9262 force-pushed the max_retries branch 2 times, most recently from 57e65c3 to e7b4ee8 Compare May 4, 2025 20:24
@bim9262
Copy link
Copy Markdown
Collaborator Author

bim9262 commented May 6, 2025

I think that with the introduction of a restart button, I'd be ok with setting the default number of retries to some small number (perhaps 5), instead of always allowing unlimited retries. What do you think @ammgws @MaxVerevkin?

@MaxVerevkin
Copy link
Copy Markdown
Collaborator

I think that with the introduction of a restart button, I'd be ok with setting the default number of retries to some small number (perhaps 5), instead of always allowing unlimited retries. What do you think @ammgws @MaxVerevkin?

I personally think that at least network failures should be retried indefinitely.

After a block fails, the user can click the retry button to restart the block.
This is nicer than having to restart the whole status bar, or sending a signal.
@ammgws ammgws merged commit 59eefca into greshake:master Dec 15, 2025
9 of 13 checks passed
@ammgws
Copy link
Copy Markdown
Collaborator

ammgws commented Dec 15, 2025

Let's go with this and work out any issues by next release timing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Blocks probably shouldn't retry infinitely in fail state

3 participants